<h1>My Documents</h1>

<table>
  <tr>
    <th>Owner</th>
    <th>Author</th>
    <th>Title</th>
    <th>Description</th>
    <th>Content</th>
    <th>Stdev</th>
  </tr>

<% @documents.each do |document| %>
  <tr>
    <td><%=h document.owner_id %></td>
    <td><%=h document.author %></td>
    <td><%=h document.title %></td>
    <td><%=h document.description %></td>
    <td><%=h document.content %></td>
    <td><%=h document.stdev %></td>
    <td><%= link_to 'Show', document %></td>
    <td><%= link_to 'Edit', edit_document_path(document) %></td>
    <td><%= link_to 'Destroy', document, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New document', new_document_path %>
